import cors from 'koa2-cors';
import bodyParser from 'koa-bodyparser';
import errHandler from './lib/errHandler';
import ManaRoutes from '../routes/ManaRoutes';


function manaMiddleWare(app: any) {
    app.use(errHandler());
    app.use(cors());
    app.use(bodyParser());

    app.use(ManaRoutes.routes());
}


export default manaMiddleWare;
